import { BaseItem } from "../../common/BaseItem";
import { ToolTipInfo } from "../../../model/ToolTipInfo";
import { NormalTooltip } from "../../common/tooltip/NormalTooltip";
import { SkillInfo } from "../../../model/SkillInfo";
import { TSkill } from "../../../../../Message/Db/Tables/TSkill";
//class GuildSkillItem
    
    export  class GuildSkillItem extends BaseItem
    {
        constructor()
        {
            super();
            return;
        }

        public /* override */ get toolTipData()
        {
            if (this._skill) 
            {
                return new ToolTipInfo(NormalTooltip.ToolTipRenderType_GuildSkill, this._skillInfo);
            }
            return null;
        }

        public get skillInfo(): SkillInfo
        {
            return this._skillInfo;
        }

        public set skillInfo(arg1: SkillInfo)
        {
            this._skillInfo = arg1;
            if (this._skillInfo) 
            {
                this.skill = this._skillInfo.tSkill;
            }
            else 
            {
                this.skill = null;
            }
            return;
        }

        /* internal  */set skill(arg1: TSkill)
        {
            this._skill = arg1;
            if (this._skill) 
            {
                this.source = this._skill.skillIcon + ".jpg";
            }
            else 
            {
                this.source = null;
            }
            return;
        }

        /* internal */ /* var */_skillInfo: SkillInfo;

        /* internal */ /* var */_skill: TSkill;
    }
